GetAtFront Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Retreives the item currently at the front of the Deque. The Deque is unchanged. This method is equivalent to deque[0] (except that a different exception is thrown).

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public T GetAtFront()
Visual Basic (Declaration)
Public Function GetAtFront As T
Visual C++
public:
T GetAtFront ()

Return Value

The item at the front of the Deque.

Remarks

Retreiving the item at the front of the Deque takes a small constant amount of time, regardless of how many items are in the Deque.

Exceptions

ExceptionCondition
System..::InvalidOperationExceptionThe Deque is empty.

See Also